//
//  ByPersonalViewModel.h
//  jmsfhz_ios
//
//  Created by pro on 16/8/3.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByBaseViewModel.h"

@protocol ByPersonalUpdateDelegate;
@protocol ByPersonalUploadIconDelegate;
@protocol ByPersonalAuthenticateDelegate;

@interface ByPersonalViewModel : ByBaseViewModel

@property (nonatomic, weak) id<ByPersonalUpdateDelegate> updateDelegate;
@property (nonatomic, weak) id<ByPersonalUploadIconDelegate> uploadIconDelegate;
@property (nonatomic, weak) id<ByPersonalAuthenticateDelegate> authenticateDelegate;

- (void)update:(ByNetParamsModel *)params;                      // 用户更新
- (void)uploadIcon:(ByNetParamsModel *)params;                  // 上传头像
- (void)authenticate:(ByNetParamsModel *)params;                // 上传认证

@end


/** 用户更新 */
@protocol ByPersonalUpdateDelegate <NSObject>

- (void)updateSuccess:(ByNetBaseResult *)result;
- (void)updateFailure:(ByNetBaseResult *)result;
@end
/** 头像上传 */
@protocol ByPersonalUploadIconDelegate <NSObject>

- (void)uploadIconSuccess:(ByNetBaseResult *)result;
- (void)uploadIconFailure:(ByNetBaseResult *)result;
@end
/** 认证上传 */
@protocol ByPersonalAuthenticateDelegate <NSObject>

- (void)AuthenticateSuccess:(ByNetBaseResult *)result;
- (void)AuthenticateFailure:(ByNetBaseResult *)result;
@end

